Skip to content

examples/hooks/grpc: Fix header field name in HTTP response - #1418

Merged
Acconut merged 1 commit into
mainfrom
fix-grpc-example-header
Nov 20, 2026
Merged

Acconut merged 1 commit into
mainfrom
fix-grpc-example-header

Conversation

@Acconut

@Acconut Acconut commented Nov 20, 2026

Copy link
Copy Markdown
Member

The Python gRPC hook example sets hook_response.httpResponse.headers[...] when rejecting an upload without a filename. The HTTPResponse message in hook.proto names this map field header, so the example raised an AttributeError instead of returning the intended 400 response. This changes it to header.

@Acconut
Acconut merged commit 9487492 into main Nov 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant